package mlz.a_set.b_linkedHashSet;

import java.util.LinkedHashSet;
import java.util.TreeSet;

//LinkedHashSet类
public class LinkedHashSetDemo {
    public static void main(String[] args) {
        LinkedHashSet<String> set = new LinkedHashSet<>();
        set.add("bbbb");
        set.add("aaaa");
        set.add("abc");
        set.add("abc");
        System.out.println(set);//[bbbb, aaaa, abc]


    }
}
